package com.ds.home.database;

import com.ds.home.EIArea;
import com.ds.home.EIPlace;
import com.ds.home.database.vo.AreaVO;

/**
 * Area entity. @author MyEclipse Persistence Tools
 */

public class DBArea implements EIArea {

    // Fields


    private AreaVO vo;


    // Constructors


    public AreaVO getVo() {
        return vo;
    }

    public void setVo(AreaVO vo) {
        this.vo = vo;
    }

    /**
     * full constructor
     */
    protected DBArea(AreaVO vo) {
        this.vo = vo;

    }

    public String getAreaid() {
        return vo.getAreaid();
    }

    public String getMemo() {
        return vo.getMemo();
    }

    public String getName() {
        return vo.getName();
    }

    
    public EIPlace getPlace() {
        EIPlace place = MEMManagerImpl.getInstance().getPlaceById(this.getPlaceid());
        return place;
    }

    public String getPlaceid() {
        return vo.getPlaceid();
    }

    public void setAreaid(String areaid) {
        vo.setAreaid(areaid);
    }

    public void setMemo(String memo) {
        vo.setMemo(memo);
    }

    public void setName(String name) {
        vo.setName(name);
    }


    public void setPlaceid(String placeid) {
        vo.setPlaceid(placeid);
    }

}